/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2023 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32mp1xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define ELE_LOCK_P_PIN_Pin GPIO_PIN_13
#define ELE_LOCK_P_PIN_GPIO_Port GPIOE
#define BEEP_Pin GPIO_PIN_11
#define BEEP_GPIO_Port GPIOE
#define RELAY_DET_2_Pin GPIO_PIN_14
#define RELAY_DET_2_GPIO_Port GPIOH
#define RELAY_DET_1_Pin GPIO_PIN_13
#define RELAY_DET_1_GPIO_Port GPIOH
#define DEBUG_RX_232_RX_Pin GPIO_PIN_2
#define DEBUG_RX_232_RX_GPIO_Port GPIOD
#define SPI1_CS_Pin GPIO_PIN_3
#define SPI1_CS_GPIO_Port GPIOZ
#define K5_Pin GPIO_PIN_9
#define K5_GPIO_Port GPIOI
#define RUN_LED_Pin GPIO_PIN_8
#define RUN_LED_GPIO_Port GPIOD
#define LED_D6_Pin GPIO_PIN_13
#define LED_D6_GPIO_Port GPIOA
#define K6_Pin GPIO_PIN_10
#define K6_GPIO_Port GPIOI
#define LED_D8_Pin GPIO_PIN_2
#define LED_D8_GPIO_Port GPIOG
#define ELE_LOCK_DET_PIN2_Pin GPIO_PIN_7
#define ELE_LOCK_DET_PIN2_GPIO_Port GPIOH
#define MAX_485_CTL_Pin GPIO_PIN_2
#define MAX_485_CTL_GPIO_Port GPIOE
#define ELE_LOCK_DET_PIN1_Pin GPIO_PIN_13
#define ELE_LOCK_DET_PIN1_GPIO_Port GPIOF
#define DEBUG_TX_232_TX_Pin GPIO_PIN_6
#define DEBUG_TX_232_TX_GPIO_Port GPIOB
#define M_DET_2_Pin GPIO_PIN_14
#define M_DET_2_GPIO_Port GPIOG
#define M_DET_1_Pin GPIO_PIN_13
#define M_DET_1_GPIO_Port GPIOG
#define K1_Pin GPIO_PIN_11
#define K1_GPIO_Port GPIOB
#define K3_Pin GPIO_PIN_0
#define K3_GPIO_Port GPIOA
#define K4_Pin GPIO_PIN_2
#define K4_GPIO_Port GPIOH
#define K2_Pin GPIO_PIN_0
#define K2_GPIO_Port GPIOC
#define CC1_Pin GPIO_PIN_4
#define CC1_GPIO_Port GPIOC

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
